/**
 * @fileOverview
 * @author iNahoo
 * @since 2019/11/15.
 */

const {run} = require('../../instances');
const {sleep, loop} = require('../../pcr-operation/utils');

run(async (p, s, m) => {

    // 冒险
    await m.click(s.getPoint(405, 387, 20, 20));
    await sleep(3e3);

    // 主线
    await m.click(s.getPoint(503, 157, 50, 50));
    await sleep(2e3);

    // Hard
    await m.click(s.getPoint(704, 63, 20, 5));

    // To Act.1
    await loop(5, async () => {
        await sleep(3e3);
        await m.click(s.getPoint(33, 204, 30, 30));
    });


    // 1-1
    await m.click(s.getPoint(233, 251, 20, 5));
    await sleep(1e3);

    // ADD
    await m.click(s.getPoint(696, 245, 5, 5));
    await m.click(s.getPoint(696, 245, 5, 5));

    // USE
    await sleep(1e3);
    await m.click(s.getPoint(660, 248, 10, 5));

    // OK
    await sleep(500);
    await m.click(s.getPoint(284, 274, 20, 5));


});
